package com.project.bean;

/**
 * 入库购物车实体类
 */
public class BuyCarBean {
    /**采购商品*/
    private ProductBean product;
    /**采购数量*/
    private int num;

    public BuyCarBean() {
    }

    public BuyCarBean(int productId, int num) {
        this.product = new ProductBean();
        this.product.setId(productId);
        this.num = num;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "BuyCarBean{" +
                "product=" + product +
                ", num=" + num +
                '}';
    }
}
